package net.sx.minemodule.mvp.activities;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.kedll.library.base.MyBaseFragmentActivity;

import net.sx.minemodule.R;
import net.sx.minemodule.databinding.MineActivityMineAddCardOneBinding;
import net.sx.minemodule.mvp.presenters.MineAddCardOnePresenter;
import net.sx.minemodule.mvp.views.MineAddCardOneView;

/**
 * 添加银行卡第一页
 * @author 11470
 */
@Route(path = ARouterPath.PATH_MINE_ADD_CARD_ONE)
public class MineAddCardOneActivity extends MyBaseFragmentActivity<MineActivityMineAddCardOneBinding,MineAddCardOnePresenter> implements MineAddCardOneView {

    @Override
    protected int getLayout() {
        return R.layout.mine_activity_mine_add_card_one;
    }

    @Override
    protected void initToolBar(Bundle savedInstanceState) {
        super.initToolBar(savedInstanceState);
        setTitle("添加银行卡");
    }

    @Override
    protected void initEvent() {
        mBinding.tvIntentAddCardTwoPackage.setOnClickListener(view ->
        ARouter.getInstance().build(ARouterPath.PATH_MINE_ADD_CARD_TWO).navigation());
    }

    @Override
    protected MineAddCardOnePresenter getPresenter() {
        return new MineAddCardOnePresenter(this);
    }
}
